﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WpfAGVSystem.Migrations
{
    public partial class Init : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CacheID",
                table: "Task_Entity");

            migrationBuilder.DropColumn(
                name: "DIRECTION",
                table: "Task_Entity");

            migrationBuilder.DropColumn(
                name: "INPUNT_POSITION",
                table: "Task_Entity");

            migrationBuilder.DropColumn(
                name: "IsLKUpdate",
                table: "Task_Entity");

            migrationBuilder.DropColumn(
                name: "IsUpdate",
                table: "Task_Entity");

            migrationBuilder.DropColumn(
                name: "LKStation",
                table: "Task_Entity");

            migrationBuilder.DropColumn(
                name: "OvenPostion",
                table: "Task_Entity");

            migrationBuilder.DropColumn(
                name: "SourId",
                table: "Task_Entity");

            migrationBuilder.DropColumn(
                name: "SourPostion",
                table: "Task_Entity");

            migrationBuilder.DropColumn(
                name: "TASK_Diam",
                table: "Task_Entity");

            migrationBuilder.DropColumn(
                name: "TASK_Diam_SIZE",
                table: "Task_Entity");

            migrationBuilder.DropColumn(
                name: "TASK_SIZE",
                table: "Task_Entity");

            migrationBuilder.DropColumn(
                name: "TASK_WIDTH",
                table: "Task_Entity");

            migrationBuilder.DropColumn(
                name: "ToPostion",
                table: "Task_Entity");

            migrationBuilder.DropColumn(
                name: "GetDownTaskType",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "GetDownWaitTaskType",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "GetUpTaskType",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "GetUpWaitTaskType",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "IsDown",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "IsLk",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "LkPostation",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "MESName",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "Manipulatorid",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "PutDownTaskType",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "PutDownWaitTaskType",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "PutUpContiuneTaskType",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "PutUpTaskType",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "PutUpWaitTaskType",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "RgvId",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "DDYGetHeightBig",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "DIRECTION",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "DIorder",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "DOorder",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "Getpoint",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "Have",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "Init",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "Iomodel",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "MESName",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "Manipulatorid",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "Putpoint",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "ReturnTaskType",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "RgvId",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "SourId",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "SourPostion",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "TASK_NO",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "Type",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "Unloading_NullNoBake",
                table: "EmptyCache_Entity");

            migrationBuilder.DropColumn(
                name: "Code",
                table: "AGV_Entity");

            migrationBuilder.DropColumn(
                name: "DIRECTION",
                table: "AGV_Entity");

            migrationBuilder.DropColumn(
                name: "HYHeight",
                table: "AGV_Entity");

            migrationBuilder.DropColumn(
                name: "HYWidth",
                table: "AGV_Entity");

            migrationBuilder.DropColumn(
                name: "Lot",
                table: "AGV_Entity");

            migrationBuilder.DropColumn(
                name: "MESName",
                table: "AGV_Entity");

            migrationBuilder.DropColumn(
                name: "SourId",
                table: "AGV_Entity");

            migrationBuilder.DropColumn(
                name: "SourPostion",
                table: "AGV_Entity");

            migrationBuilder.DropColumn(
                name: "TASK_NO",
                table: "AGV_Entity");

            migrationBuilder.DropColumn(
                name: "ToPostion",
                table: "AGV_Entity");

            migrationBuilder.RenameColumn(
                name: "WaitStation",
                table: "Machine_Entity",
                newName: "WindFullTask");

            migrationBuilder.RenameColumn(
                name: "WaitPreStation",
                table: "Machine_Entity",
                newName: "WindEmptyTask");

            migrationBuilder.RenameColumn(
                name: "WaitBackStation",
                table: "Machine_Entity",
                newName: "LoadFullTask");

            migrationBuilder.RenameColumn(
                name: "UnpackingAre",
                table: "Machine_Entity",
                newName: "LoadEmptyTask");

            migrationBuilder.RenameColumn(
                name: "Width",
                table: "FullCache_Entity",
                newName: "DDGetHeightBig");

            migrationBuilder.RenameColumn(
                name: "Unwind_Null",
                table: "FullCache_Entity",
                newName: "Wind_FullTask");

            migrationBuilder.RenameColumn(
                name: "Unwind_Full",
                table: "FullCache_Entity",
                newName: "WindEmptyTask");

            migrationBuilder.RenameColumn(
                name: "UnpackingAre",
                table: "FullCache_Entity",
                newName: "Loading_FullTask");

            migrationBuilder.RenameColumn(
                name: "Unloading_Null",
                table: "FullCache_Entity",
                newName: "LoadEmptyTask");

            migrationBuilder.RenameColumn(
                name: "Unloading_Full",
                table: "FullCache_Entity",
                newName: "DDStation");

            migrationBuilder.RenameColumn(
                name: "UnWINDReturnTaskType",
                table: "FullCache_Entity",
                newName: "DDPreStation");

            migrationBuilder.RenameColumn(
                name: "ToPostion",
                table: "FullCache_Entity",
                newName: "DDBackStation");

            migrationBuilder.RenameColumn(
                name: "Unloading_NullTobeBake",
                table: "EmptyCache_Entity",
                newName: "Type");

            migrationBuilder.RenameColumn(
                name: "UnpackingAre",
                table: "AGV_Entity",
                newName: "RepelAGV");

            migrationBuilder.AddColumn<int>(
                name: "GetFullWithEmptyTaskType",
                table: "UnpackingAre_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<bool>(
                name: "IsCK",
                table: "UnpackingAre_Entity",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<int>(
                name: "PutFullTaskTypeFromLK",
                table: "UnpackingAre_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<float>(
                name: "GoodX",
                table: "Manipulator_Entity",
                type: "real",
                nullable: false,
                defaultValue: 0f);

            migrationBuilder.AddColumn<float>(
                name: "GoodY",
                table: "Manipulator_Entity",
                type: "real",
                nullable: false,
                defaultValue: 0f);

            migrationBuilder.AddColumn<int>(
                name: "CacheID",
                table: "HistoricalTask_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "DIRECTION",
                table: "HistoricalTask_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "INPUNT_POSITION",
                table: "HistoricalTask_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsLKUpdate",
                table: "HistoricalTask_Entity",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "IsUpdate",
                table: "HistoricalTask_Entity",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<string>(
                name: "LKStation",
                table: "HistoricalTask_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "RgvId",
                table: "HistoricalTask_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "SourId",
                table: "HistoricalTask_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "SourPostion",
                table: "HistoricalTask_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "TASK_Diam",
                table: "HistoricalTask_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "TASK_Diam_SIZE",
                table: "HistoricalTask_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "TASK_NO",
                table: "HistoricalTask_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "TASK_SIZE",
                table: "HistoricalTask_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "TASK_WIDTH",
                table: "HistoricalTask_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "ToPostion",
                table: "HistoricalTask_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "Type",
                table: "HistoricalTask_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AlterColumn<float>(
                name: "GoodY",
                table: "FullCache_Entity",
                type: "real",
                nullable: false,
                oldClrType: typeof(int),
                oldType: "int");

            migrationBuilder.AlterColumn<float>(
                name: "GoodX",
                table: "FullCache_Entity",
                type: "real",
                nullable: false,
                oldClrType: typeof(int),
                oldType: "int");

            migrationBuilder.AlterColumn<float>(
                name: "DDPutHeightSaml",
                table: "FullCache_Entity",
                type: "real",
                nullable: false,
                oldClrType: typeof(int),
                oldType: "int");

            migrationBuilder.AlterColumn<float>(
                name: "DDPutHeightBig",
                table: "FullCache_Entity",
                type: "real",
                nullable: false,
                oldClrType: typeof(int),
                oldType: "int");

            migrationBuilder.AlterColumn<float>(
                name: "DDGetHeightSmal",
                table: "FullCache_Entity",
                type: "real",
                nullable: false,
                oldClrType: typeof(int),
                oldType: "int");

            migrationBuilder.AddColumn<int>(
                name: "GoodX",
                table: "AirShowerDoor",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "GoodY",
                table: "AirShowerDoor",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "GetFullWithEmptyTaskType",
                table: "UnpackingAre_Entity");

            migrationBuilder.DropColumn(
                name: "IsCK",
                table: "UnpackingAre_Entity");

            migrationBuilder.DropColumn(
                name: "PutFullTaskTypeFromLK",
                table: "UnpackingAre_Entity");

            migrationBuilder.DropColumn(
                name: "GoodX",
                table: "Manipulator_Entity");

            migrationBuilder.DropColumn(
                name: "GoodY",
                table: "Manipulator_Entity");

            migrationBuilder.DropColumn(
                name: "CacheID",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "DIRECTION",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "INPUNT_POSITION",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "IsLKUpdate",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "IsUpdate",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "LKStation",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "RgvId",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "SourId",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "SourPostion",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "TASK_Diam",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "TASK_Diam_SIZE",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "TASK_NO",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "TASK_SIZE",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "TASK_WIDTH",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "ToPostion",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "Type",
                table: "HistoricalTask_Entity");

            migrationBuilder.DropColumn(
                name: "GoodX",
                table: "AirShowerDoor");

            migrationBuilder.DropColumn(
                name: "GoodY",
                table: "AirShowerDoor");

            migrationBuilder.RenameColumn(
                name: "WindFullTask",
                table: "Machine_Entity",
                newName: "WaitStation");

            migrationBuilder.RenameColumn(
                name: "WindEmptyTask",
                table: "Machine_Entity",
                newName: "WaitPreStation");

            migrationBuilder.RenameColumn(
                name: "LoadFullTask",
                table: "Machine_Entity",
                newName: "WaitBackStation");

            migrationBuilder.RenameColumn(
                name: "LoadEmptyTask",
                table: "Machine_Entity",
                newName: "UnpackingAre");

            migrationBuilder.RenameColumn(
                name: "Wind_FullTask",
                table: "FullCache_Entity",
                newName: "Unwind_Null");

            migrationBuilder.RenameColumn(
                name: "WindEmptyTask",
                table: "FullCache_Entity",
                newName: "Unwind_Full");

            migrationBuilder.RenameColumn(
                name: "Loading_FullTask",
                table: "FullCache_Entity",
                newName: "UnpackingAre");

            migrationBuilder.RenameColumn(
                name: "LoadEmptyTask",
                table: "FullCache_Entity",
                newName: "Unloading_Null");

            migrationBuilder.RenameColumn(
                name: "DDStation",
                table: "FullCache_Entity",
                newName: "Unloading_Full");

            migrationBuilder.RenameColumn(
                name: "DDPreStation",
                table: "FullCache_Entity",
                newName: "UnWINDReturnTaskType");

            migrationBuilder.RenameColumn(
                name: "DDGetHeightBig",
                table: "FullCache_Entity",
                newName: "Width");

            migrationBuilder.RenameColumn(
                name: "DDBackStation",
                table: "FullCache_Entity",
                newName: "ToPostion");

            migrationBuilder.RenameColumn(
                name: "Type",
                table: "EmptyCache_Entity",
                newName: "Unloading_NullTobeBake");

            migrationBuilder.RenameColumn(
                name: "RepelAGV",
                table: "AGV_Entity",
                newName: "UnpackingAre");

            migrationBuilder.AddColumn<int>(
                name: "CacheID",
                table: "Task_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "DIRECTION",
                table: "Task_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "INPUNT_POSITION",
                table: "Task_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsLKUpdate",
                table: "Task_Entity",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "IsUpdate",
                table: "Task_Entity",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<string>(
                name: "LKStation",
                table: "Task_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "OvenPostion",
                table: "Task_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "SourId",
                table: "Task_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "SourPostion",
                table: "Task_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "TASK_Diam",
                table: "Task_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "TASK_Diam_SIZE",
                table: "Task_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "TASK_SIZE",
                table: "Task_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "TASK_WIDTH",
                table: "Task_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "ToPostion",
                table: "Task_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "GetDownTaskType",
                table: "Machine_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "GetDownWaitTaskType",
                table: "Machine_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "GetUpTaskType",
                table: "Machine_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "GetUpWaitTaskType",
                table: "Machine_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<bool>(
                name: "IsDown",
                table: "Machine_Entity",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "IsLk",
                table: "Machine_Entity",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<int>(
                name: "LkPostation",
                table: "Machine_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "MESName",
                table: "Machine_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Manipulatorid",
                table: "Machine_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "PutDownTaskType",
                table: "Machine_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "PutDownWaitTaskType",
                table: "Machine_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "PutUpContiuneTaskType",
                table: "Machine_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "PutUpTaskType",
                table: "Machine_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "PutUpWaitTaskType",
                table: "Machine_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "RgvId",
                table: "Machine_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AlterColumn<int>(
                name: "GoodY",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                oldClrType: typeof(float),
                oldType: "real");

            migrationBuilder.AlterColumn<int>(
                name: "GoodX",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                oldClrType: typeof(float),
                oldType: "real");

            migrationBuilder.AlterColumn<int>(
                name: "DDPutHeightSaml",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                oldClrType: typeof(float),
                oldType: "real");

            migrationBuilder.AlterColumn<int>(
                name: "DDPutHeightBig",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                oldClrType: typeof(float),
                oldType: "real");

            migrationBuilder.AlterColumn<int>(
                name: "DDGetHeightSmal",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                oldClrType: typeof(float),
                oldType: "real");

            migrationBuilder.AddColumn<int>(
                name: "DDYGetHeightBig",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "DIRECTION",
                table: "FullCache_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "DIorder",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "DOorder",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "Getpoint",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "Have",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "Init",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "Iomodel",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "MESName",
                table: "FullCache_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Manipulatorid",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "Putpoint",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "ReturnTaskType",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "RgvId",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "SourId",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "SourPostion",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "TASK_NO",
                table: "FullCache_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Type",
                table: "FullCache_Entity",
                type: "real",
                nullable: false,
                defaultValue: 0f);

            migrationBuilder.AddColumn<int>(
                name: "Unloading_NullNoBake",
                table: "EmptyCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "Code",
                table: "AGV_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DIRECTION",
                table: "AGV_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "HYHeight",
                table: "AGV_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "HYWidth",
                table: "AGV_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "Lot",
                table: "AGV_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MESName",
                table: "AGV_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "SourId",
                table: "AGV_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "SourPostion",
                table: "AGV_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "TASK_NO",
                table: "AGV_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "ToPostion",
                table: "AGV_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }
    }
}
